package diamondServer.client.parser;
import java.io.IOException;
import java.net.InetSocketAddress;

import org.xml.sax.ContentHandler;
import org.xml.sax.SAXException;
import org.xml.sax.XMLReader;
import org.xml.sax.helpers.XMLReaderFactory;





public class ClientSideParser {
	
	public ClientSideParser(String uri , InetSocketAddress address ) throws SAXException  {
		ContentHandler contH = new ClientSideContentHandler(address);
		
		try {
			XMLReader pars = XMLReaderFactory.createXMLReader();
			pars.setContentHandler(contH);	
			pars.parse(uri);
			} catch (IOException e) {e.printStackTrace();}
	}

}
